package edu.stanford.bmir.protege.web.server.stkosutil.mapper;

import org.semanticweb.owlapi.model.OWLAnnotationProperty;
import org.semanticweb.owlapi.model.OWLDataProperty;
import org.semanticweb.owlapi.model.OWLObjectProperty;

import edu.stanford.bmir.protege.web.client.rpc.stkosutil.common.UtilEntityType;

public class OwlPropertyHolder {
	private String browserText="";
	private String name="";
	private int mappingNo=0;
	private OWLObjectProperty owlObjectProperty = null;
	private OWLDataProperty owlDataProperty = null;
	private OWLAnnotationProperty owlAnnotationProperty = null;
	
	public UtilEntityType getPropertyType(){
		if (owlObjectProperty!=null){
			return UtilEntityType.OBJECT_PROPERTY;
		}else if (owlDataProperty!=null){
			return UtilEntityType.DATA_PROPERTY;
		}else if (owlAnnotationProperty!=null){
			return UtilEntityType.ANNOTATION_PROPERTY;
		}else{
			return UtilEntityType.UNKNOWN;
		}
	}

	
	public OWLObjectProperty getOwlObjectProperty() {
		return owlObjectProperty;
	}
	public void setOwlObjectProperty(OWLObjectProperty owlObjectProperty) {
		this.owlObjectProperty = owlObjectProperty;
	}
	public OWLDataProperty getOwlDataProperty() {
		return owlDataProperty;
	}
	public void setOwlDataProperty(OWLDataProperty owlDataProperty) {
		this.owlDataProperty = owlDataProperty;
	}
	public OWLAnnotationProperty getOwlAnnotationProperty() {
		return owlAnnotationProperty;
	}
	public void setOwlAnnotationProperty(OWLAnnotationProperty owlAnnotationProperty) {
		this.owlAnnotationProperty = owlAnnotationProperty;
	}
	public String getBrowserText() {
		return browserText;
	}
	public void setBrowserText(String browserText) {
		this.browserText = browserText;
	}
	public String getName() {
		return name;
	}
	public void setName(String name) {
		this.name = name;
	}
	public int getMappingNo() {
		return mappingNo;
	}
	public void setMappingNo(int mappingNo) {
		this.mappingNo = mappingNo;
	} 
	
	
}
